package aufgabe1;

public interface AbstractList {
	/**
	 * adds an element in proper location to keep list sorted
	 * 
	 * @param lastName
	 * @param firstName
	 * @param phone
	 */
	public void add(String lastName, String firstName, String phone);

	/**
	 * removes element at specific position
	 * 
	 * @param index
	 *            position of element to be removed
	 */
	public Object remove(int index);

	/**
	 * tells whether the list is empty
	 * 
	 * @return true if list is empty
	 */
	public boolean isEmpty();

	/**
	 * Number of elements stored in this list
	 * 
	 * @return number of elements
	 */
	public int size();

	/**
	 * Gets the element at <code>index</code>.
	 * 
	 * @return The element
	 */
	public Object get(int index);
}
